INCLUDE_FLAGS = -I.

CFLAGS = $(INCLUDE_FLAGS) -Wall

LFLAGS =

TARGET = uevent_utils

SOUCE_FILES = \
	uevent_utils.c

OBJS = $(patsubst %.c,%.o,$(SOUCE_FILES))

%.o : %.c
	$(CC) -c $(CFLAGS) $< -o $@

$(TARGET): $(OBJS)
	$(CC) $(OBJS) -o $@ $(LFLAGS) -static

all: $(TARGET)

.PHONY: clean

clean:
	$(RM) -rf *.o
	$(RM) -rf $(TARGET)
